package com.kystar.ledcontrol.recycleview;

import android.app.Application;

import com.kystar.ledcontrol.recycleview.activity.ImagePickerActivity;

/**
 * Created by zack on 2018/3/20.
 */

public class BaseApp extends Application {
    private static BaseApp _instance;
    public Object obj;
    public Object obj2;

    @Override
    public void onCreate() {
        super.onCreate();
        _instance = this;

    }

    public static BaseApp getApp() {
        return _instance;
    }

    // 共享变量
    private ImagePickerActivity.MyHandler handler = null;

    // set方法
    public void setHandler(ImagePickerActivity.MyHandler handler) {
        this.handler = handler;
    }

    // get方法
    public ImagePickerActivity.MyHandler getHandler() {
        return handler;
    }
}
